package com.pingpang.common.code;

import com.pingpang.common.code.impl.HessianCodeUtil;
import com.pingpang.common.code.impl.JSONCodeUtil;
import com.pingpang.common.code.impl.ProtostuffCodeUtil;

public enum CodeUtilEnum {
    HESSIAN(new HessianCodeUtil()),
    JSON(new JSONCodeUtil()),
	PROTOSTUFF(new ProtostuffCodeUtil());
	
	public final MessageCodecUtil serializer;
	
	private CodeUtilEnum (MessageCodecUtil serializer) {
        this.serializer = serializer;
    }
}
